package xin.qixia.robot.core.config;

import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;
import xin.qixia.robot.core.client.RobotClient;
import xin.qixia.robot.core.factory.RobotClientFactory;

import java.util.List;

/**
 * @author wangkaixin
 * @date 2025/5/28 9:59
 */
@AutoConfiguration
public class RobotClientFactoryAutoConfiguration {

    @Bean
    public RobotClientFactory robotClientFactory(List<RobotClient> clients) {
        return new RobotClientFactory(clients);
    }
}
